package com.baor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baor.domain.CustomerEquipmentVO;
import com.baor.domain.CustomerVO;
import com.github.yulichang.base.MPJBaseMapper;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerDao extends MPJBaseMapper<CustomerVO> {
    /**
     * 查询所有用户，按团队编号分组
     */
    List<CustomerVO> selectByCondition( @Param("nickname") String nickname, @Param("phone") String phone);
    List<CustomerEquipmentVO> selectCustomerEquipmentListManual(@Param("params") Map<String, Object> params);
    Long selectCustomerEquipmentCount(@Param("params") Map<String, Object> params);

}